/**
 * Article.css - Carefree Theme Article Detail Styles
 * 文章详情页样式 - 极光主题
 *
 * Features:
 * - Glassmorphism design
 * - Floating TOC sidebar
 * - Beautiful typography
 * - Micro-interactions
 * - Dark mode support
 */

/* ========================================
   Article Layout Container
======================================== */
.article-page {
    padding-top: 80px;
}

/* ========================================
   Breadcrumb Navigation
======================================== */
.article-breadcrumb {
    padding: var(--spacing-lg) 0;
    background: transparent;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--easing);
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ========================================
   Article Hero Header
======================================== */
.article-hero {
    position: relative;
    padding: var(--spacing-3xl) 0 var(--spacing-4xl);
    background: var(--gradient-primary);
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.2) 0%, transparent 40%);
    animation: Carefree 15s ease-in-out infinite;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-bg), transparent);
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Article Flag Badge */
.article-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-flag-badge i {
    font-size: 0.875rem;
}

/* Article Title */
.article-hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Article Meta Info */
.article-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.article-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.article-hero-meta i {
    font-size: 1rem;
    opacity: 0.8;
}

.article-hero-meta a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--duration-fast) var(--easing);
}

.article-hero-meta a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========================================
   Article Main Layout
======================================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-2xl);
    margin-top: calc(-1 * var(--spacing-3xl));
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Article Main Content
======================================== */
.article-main {
    min-width: 0;
}

.article-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Cover Image */
.article-cover {
    position: relative;
    margin: var(--spacing-xl);
    margin-bottom: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--easing);
}

.article-cover:hover img {
    transform: scale(1.02);
}

/* Tags Section */
.article-tags-section {
    padding: var(--spacing-xl);
    padding-bottom: 0;
}

.article-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary-50);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration-normal) var(--easing);
    border: 1px solid transparent;
}

.article-tag:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.article-tag i {
    font-size: 0.75rem;
}

/* Article Body Content */
.article-body {
    padding: var(--spacing-2xl);
}

/* Typography Styles */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text-primary);
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content > *:last-child {
    margin-bottom: 0;
}

.article-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary-100);
    position: relative;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.article-content p {
    margin-bottom: var(--spacing-lg);
}

.article-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary-200);
    transition: all var(--duration-fast) var(--easing);
}

.article-content a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

.article-content strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
}

/* Blockquote */
.article-content blockquote {
    position: relative;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-secondary-50) 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--spacing-md);
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-primary-200);
    line-height: 1;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.article-content li {
    margin-bottom: var(--spacing-sm);
}

.article-content ul li::marker {
    color: var(--color-primary);
}

.article-content ol li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

/* Code Styles */
.article-content code {
    padding: 0.2em 0.4em;
    background: var(--color-primary-50);
    color: var(--color-primary-dark);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
}

.article-content pre {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--color-slate-900);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    position: relative;
}

.article-content pre::before {
    content: '';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    gap: 6px;
}

.article-content pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Tables */
.article-content table {
    width: 100%;
    margin: var(--spacing-xl) 0;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content th,
.article-content td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.article-content th {
    background: var(--color-primary-50);
    font-weight: 600;
    color: var(--color-text-primary);
}

.article-content tr:hover td {
    background: var(--color-slate-50);
}

/* Horizontal Rule */
.article-content hr {
    margin: var(--spacing-2xl) 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ========================================
   Article Footer Section
======================================== */
.article-footer-section {
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-top: 1px solid var(--glass-border);
}

/* Copyright Notice */
.article-copyright {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-secondary-50) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.article-copyright-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.25rem;
}

.article-copyright-text {
    flex: 1;
}

.article-copyright-text strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.article-copyright-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.article-copyright-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.article-copyright-text a:hover {
    text-decoration: underline;
}

/* Share Section */
.article-share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.share-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.share-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-slate-100);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    text-decoration: none;
    transition: all var(--duration-normal) var(--easing);
    border: 1px solid transparent;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn.wechat:hover {
    background: #09bb07;
    color: #fff;
    border-color: #09bb07;
}

.share-btn.weibo:hover {
    background: #e6162d;
    color: #fff;
    border-color: #e6162d;
}

.share-btn.qq:hover {
    background: #12b7f5;
    color: #fff;
    border-color: #12b7f5;
}

.share-btn.link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ========================================
   Article Navigation (Prev/Next)
======================================== */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

@media (max-width: 640px) {
    .article-navigation {
        grid-template-columns: 1fr;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--duration-normal) var(--easing);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--easing);
}

.nav-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-200);
}

.nav-item:hover::before {
    opacity: 0.05;
}

.nav-item.nav-prev {
    align-items: flex-start;
}

.nav-item.nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8125rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.nav-title {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--duration-fast) var(--easing);
}

.nav-item:hover .nav-title {
    color: var(--color-primary);
}

.nav-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--color-slate-50);
    border-radius: var(--radius-xl);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ========================================
   Related Articles Section
======================================== */
.related-section {
    margin-top: var(--spacing-3xl);
}

.related-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.related-header i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--easing);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-200);
}

.related-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--easing);
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
}

.related-card-body {
    padding: var(--spacing-lg);
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--easing);
}

.related-card-title a:hover {
    color: var(--color-primary);
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.related-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ========================================
   Comments Section
======================================== */
.comments-section {
    margin-top: var(--spacing-3xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: 1px solid var(--glass-border);
}

.comments-header i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 var(--spacing-xs);
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Comment Form */
.comment-form {
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: 1px solid var(--glass-border);
}

.comment-form-inner {
    display: flex;
    gap: var(--spacing-md);
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--color-slate-100);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-body {
    flex: 1;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md);
    background: var(--color-slate-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    resize: vertical;
    transition: all var(--duration-fast) var(--easing);
}

.comment-textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-100);
}

.comment-textarea::placeholder {
    color: var(--color-text-muted);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--easing);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

/* Comments List */
.comments-list {
    padding: var(--spacing-xl) var(--spacing-2xl);
}

.comment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--glass-border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-user-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--color-slate-100);
}

.comment-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.comment-author {
    font-weight: 600;
    color: var(--color-text-primary);
}

.comment-reply-to {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.comment-reply-to a {
    color: var(--color-primary);
    text-decoration: none;
}

.comment-time {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.comment-text {
    margin: 0 0 var(--spacing-sm);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.comment-action {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing);
}

.comment-action:hover {
    background: var(--color-slate-100);
    color: var(--color-primary);
}

.comment-action.liked {
    color: var(--color-danger);
}

/* Nested Replies */
.comment-replies {
    margin-top: var(--spacing-md);
    margin-left: var(--spacing-xl);
    padding-left: var(--spacing-lg);
    border-left: 2px solid var(--color-primary-100);
}

.comment-replies .comment-item {
    padding: var(--spacing-md) 0;
}

.comment-replies .comment-user-avatar {
    width: 36px;
    height: 36px;
}

/* ========================================
   Article Sidebar (TOC & Widgets)
======================================== */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .article-sidebar {
        display: none;
    }
}

/* Table of Contents */
.toc-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.toc-header i {
    color: var(--color-primary);
}

.toc-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: var(--spacing-xs);
}

.toc-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--easing);
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-50);
}

.toc-link.active {
    color: var(--color-primary);
    background: var(--color-primary-50);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

.toc-link.toc-h3 {
    padding-left: var(--spacing-lg);
    font-size: 0.8125rem;
}

.toc-link.toc-h4 {
    padding-left: var(--spacing-2xl);
    font-size: 0.75rem;
}

/* Author Widget */
.author-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--color-primary-200);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.author-bio {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   Empty State
======================================== */
.comments-empty {
    padding: var(--spacing-3xl) var(--spacing-2xl);
    text-align: center;
}

.comments-empty-icon {
    font-size: 3rem;
    color: var(--color-text-muted);
    opacity: 0.3;
    margin-bottom: var(--spacing-md);
}

.comments-empty-text {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* ========================================
   Dark Mode Overrides
======================================== */
[data-theme="dark"] .article-hero::after {
    background: linear-gradient(to top, var(--color-bg), transparent);
}

[data-theme="dark"] .article-content pre {
    background: #0f172a;
}

[data-theme="dark"] .comment-textarea {
    background: var(--color-slate-800);
}

[data-theme="dark"] .comment-textarea:focus {
    background: var(--color-slate-700);
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .article-sidebar,
    .article-share-section,
    .article-navigation,
    .related-section,
    .comments-section {
        display: none;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-card {
        box-shadow: none;
        border: none;
    }
}
